import { GET_USER_INFO } from '../constant'
const initUser = {}
export default function userReducer(preUser=initUser, action) {
  const { type, data } = action
  switch (type) {
    case GET_USER_INFO:
      return data
    default:
      return preUser
  }
}
